%@ Language=VBScript %> <%If session("agentusername")="" Then ef=True ec="授权非法,有可能是超时造成的。" ElseIf Request("id")<>"" and not IsNumeric(Request("id")) Then ef=True ec="编号必须是数字" end if if not ef then Set conn=Server.CreateObject("ADODB.Connection") conn.Open Application("FreeHostDBlink") Set dsagn = Server.CreateObject("ADODB.Recordset") Sql="Select * from FreeHost.FreeHost_Agent where username='"&session("agentusername")&"'" dsagn.Open Sql,conn,1,3 if dsagn.eof then ef=True ec="代理会员不存在!" end if end If if not ef then if dsagn("haveclosehtml")=true then ef=True ec="管理员已关闭了您的服务域名及模板管理功能" end if end if if not ef then%> <%session("FreeHostCom").FreeHost_WR("html5")%> 模板管理 <%session("FreeHostCom").FreeHost_WR("html6")%>
<% Set dsnews = Server.CreateObject("ADODB.Recordset") Sql="Select id,stylename,nowuse,username,pubuse,agentdefault from FreeHost.FreeHost_HtmlStyle where username='"&session("agentusername")&"' or (username='"&dsagn("agent1")&"' and pubuse='1') order by id" if isnull(dsagn("agent1")) or dsagn("agent1")="n" then Sql="Select id,stylename,nowuse,username,pubuse,agentdefault from FreeHost.FreeHost_HtmlStyle where username='"&session("agentusername")&"' or (username='freehost' and pubuse='1') order by id" end if 'response.write sql 'response.end dsnews.PageSize = 15 dsnews.Open Sql,conn,1,1 %> <% if dsnews.Eof then %>编号 | 名称 | 属性 | 属性 | 操作 |
<%=dsnews("id")%> | <%=dsnews("stylename")%> | <%if dsnews("nowuse")=true and dsnews("username")<>"freehost" then%> 当前正在用的模板 <%end if%> <%if dsnews("agentdefault")=true and dsnews("username")="freehost" then%> 代理未设置模板时的默认模板 <%end if%> | <%if dsnews("pubuse")=true then%>公开的模板<%else%>不公开的模板<%end if%> | ">修改 &op=del">删除 |